﻿using System;
using System.Collections.Generic;
using System.Text;
using HAVNet.Core.String;


namespace HAVNet.Intros.AST
{
    public class ASTMemberDecls : List<ASTMemberDecl>
    {
        public override string ToString ()
        {
            return Strings.joinobjs (Environment.NewLine, this);
        }
    }

    public class ASTMemberDeclsI : List<ASTMemberDeclI>
    {
        public override string ToString()
        {
            return Strings.joinobjs (Environment.NewLine, this);
        }
    }


    public abstract class ASTMemberDecl : ASTNode
    {
        protected ASTAttributeGroups _attrGroups = null;

        public ASTAttributeGroups attrGroups { get { if (null == _attrGroups) _attrGroups = new ASTAttributeGroups (); return _attrGroups; } }
        public long modifiers { get; set; }
    }

    public abstract class ASTMemberDeclClass    : ASTMemberDecl { }

    public abstract class ASTMemberDeclStruct   : ASTMemberDecl { }

    public abstract class ASTMemberDeclI        : ASTMemberDecl { }

    public abstract class ASTMemberDeclEnum     : ASTMemberDecl { }
}
